home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 3
/
Cream of the Crop 3.iso
/
clipper
/
ks94an.zip
/
COLORSAY.HDR
< prev
next >
Wrap
Text File
|
1994-04-25
|
2KB
|
51 lines
/******************************************************************************
The Klipper Library, for CA-Clipper 5.x
Copyright (c), 1994, Wallace Information Systems Engineering
FUNCTION:
_ColorSay(nRow, nCol, cString) --> NIL
PARAMETERS:
nRow : Row to print string (DEFAULT: row())
nCol : Colomn to print string (DEFAULT: col())
cString : The string to print
SHORT:
Write text on screen matching colors already on screen at that position(s).
DESCRIPTION:
_ColorSay() prints cString on the screen, beginning at nRow, nCol and
extending for the length of cString.
Each byte of the string is written in the current color of the row/col of the
screen where it falls.
Thus, if the screen colors change as the string is written, cString changes
colors with it!
It is useful for user interface design where you cannot know what color might
be at a given set of coordinates, but you want to write something there and
color match it regardless.
_ColorSay() always returns NIL.
NOTE:
This function is the opposite of _ReColor(), which changes the color of
a screen area leaving the text there. In this respect it is similar
to _HiLight().
EXAMPLE:
_ColorSay(5,10,"BATTLESTAR GALACTICA")
Result: "BATTLESTAR GALACTICA" is written on the screen at 5,10, and each
byte is set to the color that was already on the screen where the byte
was written.
******************************************************************************/